#ifndef SET_H
#define SET_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QColorDialog>
#include <QSlider>
#include <QCheckBox>

class Set : public QWidget
{
    Q_OBJECT
public:
    explicit Set(QWidget *parent = nullptr);
    int setWidth=500;
    int setHeight=700;
    int transparency;
    bool isBold=false;
    bool isItalic=false;

    QLabel *nullLabel=new QLabel();
    QLabel *sizeLabel=new QLabel("字体大小",this);
    QLineEdit *sizeText=new QLineEdit(this);

    QPushButton *colorButton=new QPushButton("选择颜色",this);
    QColor *color=new QColor(244,190,228);

    QLabel *transparencyLabel=new QLabel("透明度",this);
    QSlider *transparencySlider=new QSlider(Qt::Horizontal,this);

    QCheckBox *bold=new QCheckBox("加粗",this);
    QCheckBox *italic=new QCheckBox("倾斜",this);

    QPushButton *saveButton=new QPushButton("保存设置",this);
    QPushButton *exitButton=new QPushButton("退出",this);

    void iniStyle();

    void saveSet();


    void paintEvent(QPaintEvent *event);
    void closeEvent(QCloseEvent *event);

signals:

};

#endif // SET_H
